//
//  CatPomodoroTimerApp.swift
//  CatPomodoroTimer
//
//  Created by Xuri Li on 2024/7/30.
//

import SwiftUI

@main
struct CatPomodoroTimerApp: App {
    @StateObject private var modelData = ModelData.shared
    @StateObject private var audioPlayer = AudioPlayer()
    
    init() {
        // 初始化数据库管理器
        _ = DatabaseManager.shared
    }
    
    var body: some Scene {
        WindowGroup {
            ContentView()
                .environmentObject(modelData)
                .environmentObject(audioPlayer)
        }
    }
}
